package com.hzlj.position.stat.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.fz.common.dict.annotation.DictConvert;
import com.hzlj.position.locate.common.common.PositionWithHandleDTO;
import com.hzlj.position.locate.common.dto.position.PositionQueryParamDTO;
import com.hzlj.position.locate.service.PositionService;
import com.hzlj.position.stat.common.dto.amtStatJzry.AmtStatJzryPositionWarningDetailQueryParamDTO;
import com.hzlj.position.stat.service.AmtStatJzryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 定位统计-汇总(AmtStatJzry)表服务接口
 *
 * @author lifh
 * @date 2023-12-06 15:39:11
 */
@Slf4j
@Service
public class AmtStatJzryServiceImpl implements AmtStatJzryService {
    @Resource
    private PositionService positionService;

    @Override
    @DictConvert
    public List<PositionWithHandleDTO> listPositionWarningDetail(AmtStatJzryPositionWarningDetailQueryParamDTO dto) {
        return positionService.listPosition4Handle(
                BeanUtil.copyProperties(dto, PositionQueryParamDTO.class)
        );
    }
}

